<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	template="/WEB-INF/templates/template.xhtml"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	>
	<ui:define name="content">
	
		<ui:include src="/includes/menu.xhtml"></ui:include>
	
		<h1><h:outputText value="Můj Profil" /></h1>
		
		<ui:include src="/includes/menuTierTwo.xhtml"></ui:include>
	
		<h2><h:outputText value="Zprávy" /></h2>
		
		<ui:include src="/includes/messageMenu.xhtml"></ui:include>
		
		<h2><h:outputText value="Outbox" /></h2>
		<h:form>
		<rich:dataTable value="#{outMessageBean.messages}" var="message">
			<rich:column>
				<f:facet name="header">
					<h:outputText value="id" />
				</f:facet>			
				<h:outputText value="#{message.id}" />
			</rich:column>	
			<rich:column>
				<f:facet name="header">
					<h:outputText value="title" />
				</f:facet>	
				<h:outputText value="#{message.title}" />
			</rich:column>		
			<rich:column>
				<f:facet name="header">
					<h:outputText value="text" />
				</f:facet>	
				<h:outputText value="#{message.text}" />
			</rich:column>
			<rich:column>
				<f:facet name="header">
					<h:outputText value="date" />
				</f:facet>	
				<h:outputText value="#{message.date}" />
			</rich:column>		
		</rich:dataTable>
		</h:form>
	</ui:define>
</ui:composition>